﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface.SheepFileModelInterface
{
    public interface ISheepFileModelRepository
    {
        /// <summary>
        /// 羊只档案显示
        /// </summary>
        /// <returns></returns>
        Task<IQueryable<Sheepfilemodel>> GetSheepfilemodels();
        /// <summary>
        /// 档案添加
        /// </summary>
        /// <param name="sheepfilemodel"></param>
        /// <returns></returns>
       Task<int> AddSheepFileModel(Sheepfilemodel sheepfilemodel);
        /// <summary>
        /// 档案删除
        /// </summary>
        /// <param name="sheepfileId"></param>
        /// <returns></returns>
        Task<int> DeleteSheepFileModel(int sheepfileId);
        /// <summary>
        /// 档案反填
        /// </summary>
        /// <param name="sheepfileId"></param>
        /// <returns></returns>
        Task<Sheepfilemodel> ListSheepFileModel(int sheepfileId);
        /// <summary>
        /// 档案修改
        /// </summary>
        /// <param name="sheepfilemodel"></param>
        /// <returns></returns>
        Task<int> UpdaSheepFileModel(Sheepfilemodel sheepfilemodel);
        /// <summary>
        /// 批量添加档案
        /// </summary>
        /// <param name="sheepfilemodel"></param>
        /// <returns></returns>
        Task<int> AddListSheepFileModel(List<Sheepfilemodel> sheepfilemodel);
        /// <summary>
        /// 档案批量修改
        /// </summary>
        /// <param name="sheepfilemodel"></param>
        /// <returns></returns>
        Task<int> UpdateListSheepFileModel(List<Sheepfilemodel> sheepfilemodel);
		/// <summary>
		/// 根据耳号反填羊只档案
		/// </summary>
		/// <param name="id"></param>
		/// <returns></returns>
		Task<Sheepfilemodel> DteilSheepfilemodel(string eartag);














        


	}
}
